#pragma once

#include "hotspot.h"
#include "afxcmn.h"
#include "UnivueDlg.h"


// CDlgFileList dialog

class CDlgFileList : public CDialog
{
	DECLARE_DYNAMIC(CDlgFileList)

public:
	CDlgFileList(PLAYINFO* p_playInfo, CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgFileList();

// Dialog Data
	enum { IDD = IDD_DLG_RECLIST };

public:
	CBitmap			m_Skin;
	CHotSpots		m_buttons;
	CHotSpots		m_tabs;
	PLAYINFO*		m_pPlayInfo;
	CString			m_folderPath;
	int				m_filter;		//0: all, 1: normal only, 2: event only, 3: user only

public:
	void			init();
	void			prepareSkin();
	void			setBtnPos();
	void			displaySkin(CDC* pDC);
	void			addToList(LPCTSTR recType, CStringList& sList);
	void			doFileList();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CListCtrl m_ListCtrl;
protected:
	virtual void OnOK();
public:
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
